﻿<Window x:Class="WpfWordsLearner.Views.WordsSelectionView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="WordsSelectionView"
        Width="400"
        Height="300">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="60" />
			<RowDefinition />
			<RowDefinition />
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition />
			<ColumnDefinition Width="20" />
			<ColumnDefinition />
		</Grid.ColumnDefinitions>
		<StackPanel Grid.ColumnSpan="3" Orientation="Vertical">
			<StackPanel Orientation="Horizontal">
				<TextBlock Text="From :" />
				<TextBox Width="190"
				         Margin="3,0,0,0"
				         Text="{Binding Path=FileName,
				                        Mode=TwoWay}" />
				<Button Command="{Binding GetWordsCommand}" Content="Get words" />
			</StackPanel>
			<StackPanel Margin="0,3,0,0" Orientation="Horizontal">
				<TextBlock Text="To :" />
				<TextBox Width="190"
				         Margin="3,0,0,0"
				         Text="{Binding Path=FileName2,
				                        Mode=TwoWay}" />
				<Button Command="{Binding SaveWordsCommand}" Content="Save words" />
			</StackPanel>
		</StackPanel>
		<ListBox Grid.Row="1"
		         ItemsSource="{Binding Words}"
		         SelectedItem="{Binding Path=SelectedWord,
		                                Mode=TwoWay}" />
		<ListBox Grid.Row="1"
		         Grid.Column="2"
		         ItemsSource="{Binding WordsToSave,
		                               Mode=TwoWay}" />
		<Button Grid.Row="1"
		        Grid.Column="1"
		        Height="23"
		        Command="{Binding MoveCommand}"
		        Content="-&gt;" />
	</Grid>
</Window>
